
"""构造函数

对象初始化时, 会被自动调用
"""

class Person(object):
    def __init__(self, name):
        self.name = name


person = Person("sn")
print(person.name)







